py_library(
    name = 'init',
    srcs = [
      '__init__.py',
    ]
)

py_library(
    name = 'server_lock',
    srcs = [
      'server_lock.py',
    ],
    deps = [
      ':init',
      ':server',
      ':client_lib',
      '//:inotify',
    ]
)

py_library(
    name = 'server',
    srcs = [
      'server.py',
    ],
    deps = [
      ':init',
      ':socket_clients',
      '//:inotify',
    ]
)

py_library(
    name = 'socket_clients',
    srcs = [
      'socket_clients.py',
    ],
    deps = [
      ':init',
      ':port_name',
      ':watcher_schema',
      ':message',
    ]
)

py_library(
    name = 'client_lib',
    srcs = [
      'client_lib.py',
    ],
    deps = [
      ':init',
      ':port_name',
      ':watcher_schema',
    ]
)

py_library(
    name = 'port_name',
    srcs = [
      'port_name.py',
    ],
    deps = [
      ':init',
    ]
)

py_library(
    name = 'watcher_schema',
    srcs = [
      'watcher_schema.py',
    ],
    deps = [
      ':init',
      ':message',
    ]
)

py_library(
    name = 'message',
    srcs = [
      'message.py',
    ],
    deps = [
      ':init',
    ]
)
